package ar.pmt.vista.manager.impl;

import java.util.ArrayList;
import java.util.Collection;

import javax.servlet.http.HttpServletRequest;

import ar.pmt.modelo.beans.Peticion;
import ar.pmt.modelo.beans.Recurso;
import ar.pmt.modelo.businessObject.SrvcControlAvance;
import ar.pmt.vista.beans.EstimacionBean;
import ar.pmt.vista.beans.IndiceBean;
import ar.pmt.vista.beans.RecursoBean;
import ar.pmt.vista.beansComplejos.PeticionBeanOriginal;;

public class ReporteManagerImpl extends Manager {
	
	
	public Collection<IndiceBean> obtenerIndices(PeticionBeanOriginal peticionBean, RecursoBean recursoBean) throws Exception{
			Collection<EstimacionBean> estimaciones= new ArrayList<EstimacionBean>();
			SrvcControlAvance srvcControlAvance = (SrvcControlAvance)beanFactory.getBean("srvcControlAvance");
			
			Peticion peticion = srvcControlAvance.obtenerPeticion(peticionBean.getId());
			Recurso recurso = srvcControlAvance.obtenerRecurso(peticionBean.getId());
			
			HttpServletRequest request = null;
			
			Collection<IndiceBean> indicesBean= BeanVistaManager.obtenerIndicesBean(peticion, recurso, 
			request, estimaciones);
			
			return indicesBean;
	}
	

}
